package com.Blog.www.po;

import java.util.Date;
import java.util.Objects;

/**
 * 用户实体类
 */
public class User {
    private int id;
    private int account;
    private String username;
    private String password;
    private String status;
    private String identity;
    private Boolean flag;
    private String path;
    private long lastTime;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account=" + account +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", status='" + status + '\'' +
                ", identity='" + identity + '\'' +
                ", flag=" + flag +
                ", path='" + path + '\'' +
                ", lastTime=" + lastTime +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return id == user.id && account == user.account && lastTime == user.lastTime && Objects.equals(username, user.username) && Objects.equals(password, user.password) && Objects.equals(status, user.status) && Objects.equals(identity, user.identity) && Objects.equals(flag, user.flag) && Objects.equals(path, user.path);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, account, username, password, status, identity, flag, path, lastTime);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAccount() {
        return account;
    }

    public void setAccount(int account) {
        this.account = account;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getLastTime() {
        return lastTime;
    }

    public void setLastTime(long lastTime) {
        this.lastTime = lastTime;
    }
}

